package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.BasisTaskDeterminationMapper;
import com.ruoyi.domain.BasisTaskDetermination;
import com.ruoyi.service.IBasisTaskDeterminationService;

/**
 * 任务决心Service业务层处理
 * 
 * @author wangzebing
 * @date 2025-03-20
 */
@Service
public class BasisTaskDeterminationServiceImpl implements IBasisTaskDeterminationService 
{
    @Autowired
    private BasisTaskDeterminationMapper basisTaskDeterminationMapper;

    /**
     * 查询任务决心
     * 
     * @param id 任务决心主键
     * @return 任务决心
     */
    @Override
    public BasisTaskDetermination selectBasisTaskDeterminationById(Long id)
    {
        return basisTaskDeterminationMapper.selectBasisTaskDeterminationById(id);
    }

    /**
     * 查询任务决心列表
     * 
     * @param basisTaskDetermination 任务决心
     * @return 任务决心
     */
    @Override
    public List<BasisTaskDetermination> selectBasisTaskDeterminationList(BasisTaskDetermination basisTaskDetermination)
    {
        return basisTaskDeterminationMapper.selectBasisTaskDeterminationList(basisTaskDetermination);
    }

    /**
     * 新增任务决心
     * 
     * @param basisTaskDetermination 任务决心
     * @return 结果
     */
    @Override
    public int insertBasisTaskDetermination(BasisTaskDetermination basisTaskDetermination)
    {
        return basisTaskDeterminationMapper.insertBasisTaskDetermination(basisTaskDetermination);
    }

    /**
     * 修改任务决心
     * 
     * @param basisTaskDetermination 任务决心
     * @return 结果
     */
    @Override
    public int updateBasisTaskDetermination(BasisTaskDetermination basisTaskDetermination)
    {
        return basisTaskDeterminationMapper.updateBasisTaskDetermination(basisTaskDetermination);
    }

    /**
     * 批量删除任务决心
     * 
     * @param ids 需要删除的任务决心主键
     * @return 结果
     */
    @Override
    public int deleteBasisTaskDeterminationByIds(Long[] ids)
    {
        return basisTaskDeterminationMapper.deleteBasisTaskDeterminationByIds(ids);
    }

    /**
     * 删除任务决心信息
     * 
     * @param id 任务决心主键
     * @return 结果
     */
    @Override
    public int deleteBasisTaskDeterminationById(Long id)
    {
        return basisTaskDeterminationMapper.deleteBasisTaskDeterminationById(id);
    }
}
